//
//  ModelAdapt.h
//  tableViewDemo
//
//  Created by lix on 16/8/27.
//  Copyright © 2016年 lix. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

NS_ASSUME_NONNULL_BEGIN

@interface ModelAdapt : NSManagedObject

@property (readonly, strong, nonatomic) NSManagedObjectContext * managedObjContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel * managedObjModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator * perStoreCoordinator;

+ (instancetype) sharedCoreDataManager;

- (void)saveContext;

- (void)addData:(NSString *)text;

- (NSArray *)selectAll;

- (void)delData:(NSNumber *)adapt_id;

@end

NS_ASSUME_NONNULL_END

#import "ModelAdapt+CoreDataProperties.h"
